<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use View;
use App\Model\About;
use App\Model\News;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
        View::share(['about'=>About::find(1),'gonggao'=>News::getData('5',1)]);
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
